const CssMinimizerWebpackPlugin = require('css-minimizer-webpack-plugin')
const TerserWebpackPlugin = require('terser-webpack-plugin')

module.exports = {

    output: {
        filename: 'script/[name].[contenthash].js',
        publicPath: "http:localhost:8080/"
    },

    mode: 'production',

    devtool: 'inline-source-map',

    optimization: {
        minimizer: [
            new CssMinimizerWebpackPlugin(),
            new TerserWebpackPlugin(),
        ],
    },

    performance: {
        hints: false
    }
}